package robot;

import lejos.nxt.Button;
import lejos.nxt.Sound;

public class Main {

	public static void main(String[] args) {

		Sound.setVolume(60);
		Sound.beepSequenceUp();
		System.out.println("Start: ");
		Robot r = new Robot();
		new Thread(r).start();

		int button = Button.waitForAnyPress();
		while (true) {
			switch (button) {

			case Button.ID_ESCAPE:
				r.end();
				System.exit(0);
				return;
			default:
				break;
			}
		}
	}
}
